/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */

package pkl51.test;

import pkl51.database.DbConfigUtility;

/**
 *
 * @author Hindarwan
 */
public class CreateDbProperties {

    /**
     * @param args the command line arguments
     * @param args 
     */
    public static void main(String[] args) {
        // TODO code application logic here
        DbConfigUtility.setDriverName("com.mysql.jdbc.Driver");
        DbConfigUtility.setJdbcUrl("jdbc:mysql://");
        DbConfigUtility.setServerName(args[0]);
        DbConfigUtility.setPort(Integer.valueOf(args[1]));
        DbConfigUtility.setDatabaseName(args[2]);
        DbConfigUtility.setUser(args[3]);
        DbConfigUtility.setPassword(args[4]);
        DbConfigUtility.write();
    }

}
